import request from '@/utils/request'

// 查询消息模版分组列表
export function listSmstemlategroup(query) {
  return request({
    url: '/Sms/smstemlategroup/treeList',
    method: 'get',
    params: query
  })
}

// 查询消息模版分组详细
export function getSmstemlategroup(groupId) {
  return request({
    url: '/Sms/smstemlategroup/' + groupId,
    method: 'get'
  })
}

// 新增消息模版分组
export function addSmstemlategroup(data) {
  return request({
    url: '/Sms/smstemlategroup',
    method: 'post',
    data: data
  })
}

// 修改消息模版分组
export function updateSmstemlategroup(data) {
  return request({
    url: '/Sms/smstemlategroup',
    method: 'put',
    data: data
  })
}

// 删除消息模版分组
export function delSmstemlategroup(groupId) {
  return request({
    url: '/Sms/smstemlategroup/' + groupId,
    method: 'delete'
  })
}
